<a href="index.php?page=add_char&&action=gcash">G-Cash</a><br>
<a href="index.php?page=add_char&&action=point">Point</a><br>
<?php
if(isset($_REQUEST['action'])){
	if($_REQUEST['action'] == 'gcash'){
?>
<form action="proses_add_set.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3" align="center">Add Char</td>
    </tr>
    <tr>
      <td>Picture</td>
      <td>:</td>
      <td><label for="picture"></label>
      <input type="file" name="picture" id="picture" /></td>
    </tr>
    <tr>
      <td>Char Name</td>
      <td>:</td>
      <td><label for="char_name"></label>
      <input type="text" name="char_name" id="char_name" /></td>
    </tr>
    <tr>
      <td>Mark</td>
      <td>:</td>
      <td><label for="mark"></label>
        <select name="mark" id="mark">
          <option value="hot">Hot</option>
          <option value="new">New</option>
          <option value="regular">Regular</option>
      </select></td>
    </tr>
    <tr>
      <td>Duration &amp; Price</td>
      <td>:</td>
      <td><label for="dp">1 Day : 
          <input name="one_day" type="text" id="one_day" size="6" maxlength="6">
          <br>
      3 Day : 
          <input name="three_day" type="text" id="three_day" size="6" maxlength="6">
          <br>
          7 Day :
          <input name="seven_day" type="text" id="seven_day" size="6" maxlength="6">
          <br>
          30 Day :
          <input name="thirty_day" type="text" id="thirty_day" size="6" maxlength="6">
      </label></td>
    </tr>
    <tr>
      <td>Description</td>
      <td>:</td>
      <td><label for="damage"></label>
        <label>
        <textarea name="description" cols="30" rows="10" id="description"></textarea>
      </label></td>
    </tr>
    <tr>
      <td>Status</td>
      <td>:</td>
      <td><select name="status" id="status">
        <option value="sell">Sell</option>
        <option value="not_sell">Not Sell</option>
      </select>
        <input name="tipe" type="hidden" id="tipe" value="<?php if($_REQUEST['action'] == 'gcash'){ echo"gcash";	}else{ header("location:index.php?page=add_char");
			}
		?>" />
        <input type="hidden" name="point_unit" id="point_unit" />
      <input type="hidden" name="point_price" id="point_price" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
  </table>
</form>
  </table>
</form>
<?php
	}elseif($_REQUEST['action'] == 'point'){
?>
<form action="proses_add_set.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="500" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3" align="center">Add Set</td>
    </tr>
    <tr>
      <td>Picture</td>
      <td>:</td>
      <td><label for="picture"></label>
      <input type="file" name="picture" id="picture" /></td>
    </tr>
    <tr>
      <td>Char Name</td>
      <td>:</td>
      <td><label for="char_name"></label>
      <input type="text" name="char_name" id="char_name" /></td>
    </tr>
    <tr>
      <td>Mark</td>
      <td>:</td>
      <td><label for="mark"></label>
        <select name="mark" id="mark">
          <option value="hot">Hot</option>
          <option value="new">New</option>
          <option value="regular">Regular</option>
      </select></td>
    </tr>
    <tr>
      <td>Duration &amp; Price</td>
      <td>:</td>
      <td><label for="dp">
        <input name="point_price" type="text" id="point_price" size="6" maxlength="6" /> 
        Point :
        <input name="point_unit" type="text" id="point_unit" size="6" maxlength="6">
          Unit</label></td>
    </tr>
    <tr>
      <td>Description</td>
      <td>:</td>
      <td><label for="damage"></label>
        <label>
        <textarea name="description" cols="30" rows="10" id="description"></textarea>
      </label></td>
    </tr>
    <tr>
      <td>Status</td>
      <td>:</td>
      <td><select name="status" id="status">
        <option value="sell">Sell</option>
        <option value="not_sell">Not Sell</option>
      </select>
        <input name="tipe" type="hidden" id="tipe" value="<?php if($_REQUEST['action'] == 'point'){echo"point";}else{header("location:index.php?page=add_char"); }?>" />
        <input type="hidden" name="one_day" id="one_day" />
        <input type="hidden" name="three_day" id="three_day" />
        <input type="hidden" name="seven_day" id="seven_day" />
      <input type="hidden" name="thirty_day" id="thirty_day" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
  </table>
</form>
  </table>
</form>
<?php
	}else{
		echo"&nbsp;";	
	}
}
?>